package com.shopping_assistant.view;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

import com.shopping_assistant.view.tabs.TopTenOffersTab;
import com.shopping_assistant.view.tabs.TopTenShopsTab;

public class TopTenView extends TabActivity{
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.top_ten_view);
        
        TabHost tabHost = getTabHost();
        
        tabHost.addTab(tabHost.newTabSpec("topTenShopsTab").setIndicator("Top10 Shops").setContent(new Intent(this, TopTenShopsTab.class)));
        tabHost.addTab(tabHost.newTabSpec("topTenOffersTab").setIndicator("Top10 Offers").setContent(new Intent(this, TopTenOffersTab.class)));
        
        tabHost.setCurrentTab(0);
	}
}
